Energy Consumption Measurement of C/C++ Programs Using Clang Tooling
نویسندگان
چکیده
While in the previous century computer manufacturers and software developers primary and single goal was to produce very fast computers and software systems, in this century this has changed: the widespread use of nonwired but powerful computer devices is making battery consumption/lifetime the bottleneck for both manufacturers and software developers. Unfortunately there is no software engineering discipline providing techniques and tools to help software developers to analyze, understand and optimize the energy consumption of their software! As a consequence, if a developer notices that his/her software is responsible for a large battery drain, he/she gets no support from the language/compiler he/she is using. The hardware manufacturers have already realized this concern and much work in terms of optimizing energy consumption by optimizing the hardware has been done. Unfortunately, the programming language and software engineering communities have not yet completely realize that bottleneck, and as consequence, there is little support for software developers to reason about energy consumption of their software. Although is the hardware that consumes energy, the software can greatly influence such consumption [Bener et al. 2014], very much like a driver that operates a car influences its fuel consumption. In this paper we introduce an automated instrumentation-based method to measure the process level energy consumption for C/C++ programs. The source code is compiled by our Clang tooling based compiler to produce an instrumented code. The generated executable will measure the energy con-
منابع مشابه
C Code Verification based on the Extended Labeled Transition System Model
The C programming language is widely used in safety-critical software systems. With its large appliance and increasing complexity, the need of ensuring the correctness of C codes emerged. This paper presents Ceagle , a fully automated program verifier for finding assertion violations in C programs. It is decent in both accuracy and efficiency by using a semantically equivalent program model lan...
متن کاملUsing the Eclipse C/C++ Development Tooling as a Robust, Fully Functional, Actively Maintained, Open Source C++ Parser
Open Source parsers that support contemporary C/C++, can recover from errors, include a preprocessor, and that are actively maintained, are rare. This work describes how to use the parser contained in the Eclipse C/C++ Development Tooling (CDT) as a Java library. Such parser provides not only the abstract syntax tree of the parsed le but also the semantics, i.e., type information and bindings. ...
متن کاملAnalysis of Energy Consumption Rate in Drying Process of Corn Using Dryer Reservoir in Different Temperature and Height of Layer
Objective: Drying is one of the most important post-harvesting processes in agriculture. Drying method and also drying time have an important effect on the amount of energy required. In this study analysis of energy consumption for drying corn in dryer reservoir with flow of warm air and the effect of the temperature and height of product layer on the amount of energy consumption per unit mass ...
متن کاملClang and Coccinelle: Synergising program analysis tools for CERT C Secure Coding Standard certification
Writing correct C programs is well-known to be hard, not least due to the many language features intrinsic to C. Writing secure C programs is even harder and, at times, seemingly impossible. To improve on this situation the US CERT has developed and published a set of coding standards, the “CERT C Secure Coding Standard”, that (in the current version) enumerates 118 rules and 182 recommendation...
متن کاملAnalysis of Energy Consumption Rate in Drying Process of Corn Using Dryer Reservoir in Different Temperature and Height of Layer
Objective: Drying is one of the most important post-harvesting processes in agriculture. Drying method and also drying time have an important effect on the amount of energy required. In this study analysis of energy consumption for drying corn in dryer reservoir with flow of warm air and the effect of the temperature and height of product layer on the amount of energy consumption per unit mass ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2017